package org.ben.xintoucloud.javase.oop.oop5;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

/**
 * @Author: Ben
 * @Date: 2019/7/11 11:07
 */
public class Employee extends Printer implements Use{
    private String name;
    private int age;

    public Employee(String color, String name, int age) {
        super(color);
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public void color() {
        System.out.println("颜色");
    }

    @Override
    public void use() {
        System.out.println(name+"用了"+color);
    }
}
